<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // 继续抽取   公共的部分放到原型上
    function Father(uname, age) {
      this.uname = uname
      this.age = age
    }
    Father.prototype.height = function () {
      console.log('184');
    }
    function Son() { }
    Son.prototype = new Father
    Son.prototype.constructor = Son
  </script>
</body>

</html>